package com.ls.uav_backend.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

import java.io.Serial;

import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 拍摄图片 实体类。
 *
 * @author <a href="https://gitee.com/Linkating">LinSkating</a>
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("picture")
public class Picture implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 图片id
     */
    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    private Long id;

    /**
     * 田地id
     */
    @Column("fieldId")
    private Integer fieldId;

    /**
     * 图片URL
     */
    private String url;

    /**
     * 创建图片时间
     */
    @Column("createTime")
    private LocalDateTime createTime;

}
